package com.zxh.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @author zhangyj
 *
 * 
 */
public class PathUtil {
	public static String getPath(String fileName){
		String filePath= PathUtil.class.getClassLoader().getResource(fileName)
				.getFile().replaceAll("%20"," ");
		try {
			filePath = URLDecoder.decode(filePath,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return filePath;
	}
}
